var express = require('express');
var app = express();
var path = require('path');
var bodyParser = require('body-parser');

//use ejs template
app.set('views', path.join(__dirname, 'views'));
app.set("view engine","ejs");

var routes = require('./route/index');
routes(app);

app.use(express.static(path.join(__dirname,'/static')));


var server = app.listen(1028, function()
{
    console.log('technode is on port ' + 1028 + '!');
});